<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
   body{text-align: center;}
</style>
<body>
    <h2>随机点名</h2>
    <div class="box">
        <span>恭喜:</span>
        <div class="qs">显示的姓名</div>
    </div>
    <div class="btns">
        <button id="one">开始</button>
        <button id="two">结束</button>
    </div>
    <script>
    var arr=["刘德华","张学友","周杰伦","蔡徐坤","吴彦祖"]
    var qs=document.querySelector('.qs')
    var one=document.getElementById('one')
    one.onclick=function(){
        var i=Math.floor(Math.random() * arr.length)
        qs.innerHTML=arr[i]
    }
    </script>
</body>
</html>